package com.mgrid.convert.job;

import com.mgrid.convert.clickhouse.service.HistorysignalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component
public class ConvertJob {

    @Resource
    HistorysignalService historysignalService;

    @Scheduled(cron = "0 0 1 * * ?")//凌晨一点
    public void convertSql(){
        historysignalService.sqlConvert();
    }
}
